<?php
class Model {
    private $module;
    protected $db;
    
    
    public function init() {
        $this->db = tos_get_db();
    }
    
    
    public function set_module($module_name) {
        $this->module = m($module_name);
    }
    
    
    protected function _m($model_name) {
        return $this->module->model($model_name);
    }
}
?>